PROJECT(ZLOGDEMO)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE(STATUS ${CMAKE_SYSTEM})
MESSAGE(STATUS ${CMAKE_SYSTEM_PROCESSOR})

INCLUDE_DIRECTORIES($ENV{ZLOG_ROOT}/include)

LINK_DIRECTORIES($ENV{ZLOG_ROOT}/lib)

ADD_EXECUTABLE(zlogDemo main.c)

TARGET_LINK_LIBRARIES(zlogDemo zlog)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)